package com.wxb.hello.activemq.consumer;

/**
 * describe:
 *
 * @author : 王校兵
 * @version : v1.0
 * @time : 2017/7/26  18:58
 */

public class MessageListener {

    /**
     * 使用@JmsListener注解来监听指定的某个队列内的消息,是否有新增,有的话则取出队列内消息
     * 进行处理
     */
//    @JmsListener(destination = "my-queue")
    public void removeMessage1(String msg) {
        System.out.println("监听1接收到的消息是:" + msg);//打印队列内的消息
    }

//    @JmsListener(destination = "my-topic")
    public void removeMessage4(String msg) {
        System.out.println("监听4接收到的消息是:" + msg);//打印队列内的消息
    }

//    @JmsListener(destination = "my-topic")
    public void removeMessage5(String msg) {
        System.out.println("监听5接收到的消息是:" + msg);//打印队列内的消息
    }

//    @JmsListener(destination = "my-topic")
    public void removeMessage6(String msg) {
        System.out.println("监听6接收到的消息是:" + msg);//打印队列内的消息
    }
}